package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SubscribeDao {
    Page<subscribe> findByCondition(QueryPageBean queryPageBean);

    Member ismember(@Param("phoneNumber") String phoneNumber, @Param("name") String name);

    void addmember(Member newmember);

    OrderSetting todayOrderFill(String format);


    void reservations(Date orderDate);

    void addoder(Order order);

    List<Setmeal> echoSetmeal();


    List<Order> findOder(@Param("format") String format, @Param("id") Integer id, @Param("memberId") Integer memberId);

    Map editechobasic(Map row);


    //  List<Map<String, Object>> setmealecho(Map row);
    Integer[] setmealecho(Map row);

    /* void editorbasic(Map OderAndMemSet);*/

    void delebasic(Map row);

    Member findmemberId(Integer memberId);


    void editorMem(@Param("id") Integer id, @Param("name") String name);

    void editorOder(Map map);


   // void editorSetmeal(Integer ids);
   void editorSetmeal(@Param("map") Map map, @Param("ids") Integer ids);

    //判断是否在地址、详情表
    long isOrderAddz(Map row);

    void deleOderandAddr(Map row);

    void alterthestate(Map state);

    void eliminateSetmealId(Map map);



}
